/*
 * board.h
 *
 *  Created on: May 29, 2021
 *      Author: tau
 */

#ifndef BOARD_H_
#define BOARD_H_
#include <iostream>
#include "gpio.h"
#include <termios.h>
#include <unistd.h>
#include "stdio.h"


typedef struct{
	float currentApture[2];
	float targetApture[2];
	float powerVoltage;
	float current[2];
	int duty[2];
	int errorCode[2];
}tResult_t;

void boardInit(void);
void onEvent(void);
void onError(void);
void onHeart(void);
gpio* getBeep(void);

void beepDi(void);
void beepDiDi(void);

#endif /* BOARD_H_ */
